﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
<%@ Import Namespace="CWB.Web.DB" %>
<%@ Import Namespace="CWB.Web.Mvc.Extensions" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Create
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <form id="createProd">
        <%
            DbModuleProd prod = (DbModuleProd)ViewData.Model;
        %>
        <input type="hidden" name="sn" id="sn" value="<% = prod.sn %>" />
        <table class="width100 ui-widget-content ui-corner-all">
        <COLGROUP>
          <COL WIDTH="40%">
          <COL WIDTH="60%">
        </COLGROUP>        
        <tbody>
            <tr><td><% =Resources.Text.Label_id %><%=Resources.Text.Label_Colon %></td><td><% = prod.prodid %></td></tr>
            <tr><td><% =Resources.Text.Label_ProdName %><%=Resources.Text.Label_Colon %></td><td><input type="text" name="prodName" id="prodName" value="<% = prod.prodName %>" /></td></tr>
            <tr><td><% =Resources.Text.Label_Unit %><%=Resources.Text.Label_Colon %></td><td><input type="text" name="unit" id="unit" value="<% = prod.unit %>" /></td></tr>
            <tr><td><% =Resources.Text.Label_Unit_Value %><%=Resources.Text.Label_Colon %></td><td><input type="text" name="unitValue" id="unitValue" value="<% = prod.unitvalue %>" /></td></tr>
            <tr><td><% =Resources.Text.Label_Fee %><%=Resources.Text.Label_Colon %></td><td><input type="text" name="fee" id="fee" value="<% = prod.fee %>" /></td></tr>
            <tr><td colspan="2">
                <a href="#" id="btnSave" class="align-right ui-state-default ui-corner-all"><span class="align-right ui-icon ui-icon-pencil"></span><% =Resources.Text.Btn_Save %></a></td>
            </tr>
        </tbody>
        </table>
    </form>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="header" runat="server">
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="JSContent" runat="server">
    <script type="text/javascript" src="<%= Url.CdnContent("/js/Prod/ProdUpdate.js") %>"></script>
</asp:Content>